﻿using System;

namespace ActivePalInterop.Data
{
    /// <summary>
    /// Stores a line of data that is read from a .csv file
    /// </summary>
    public struct ActivePalRecord
    {
        public Guid SessionId { get; set; }
        /// <summary>
        /// Date of the measurements
        /// </summary>
        public DateTime Date { get; set; }

        /// <summary>
        /// Accelerometery value
        /// </summary>
        public byte Value { get; set; }
        
        /// <summary>
        /// Creates a new record
        /// </summary>
        /// <param name="date">Date of the measurements</param>
        /// <param name="value">Accelerometery value</param>
        public ActivePalRecord(Guid sessionId, DateTime date, byte value)
            : this()
        {
            SessionId = sessionId;
            Date = date;
            Value = value;            
        }
    }
}
